str1 = input('输入字符串：')
da = 0
da1 = []
xiao = 0
xiao1 = []
shu = 0
shu1 = []
fu = 0
fu1 = []
kong = 0
for i in str1:
    if i.islower():
        xiao += 1
        xiao1.append(i)
    elif i.isupper():
        da += 1
        da1.append(i)
    elif i. isdigit():
        shu += 1
        shu1.append(i)
    elif i == ' ':
        kong += 1
    else:
        fu += 1
        fu1.append(i)
print('大写%s个'%da)
print(da1)
print('小写%s个'%xiao)
print(xiao1)
print('数字%s个'%shu)
print(shu1)
print('空格%s个'%kong)
print('符号%s个'%fu)
print(fu1)